<?php
// *** Tangra (Application Framework and Tools for PHP)
// $Id: site_dbc.class.php 1577 2009-01-16 21:01:20Z ogrebg $
//

require_once(TANGRA_MAIN_DIR.'db/db_config.class.php');
require_once('dbal_conn.class.php');


class Site_DBC_PNT extends DBAL_Conn {

	function __construct(DB_Config $db_config) {
		parent::__construct($db_config->get_db_dsn_pnt());

		$this->execute('SET AUTOCOMMIT=1');
		$this->execute("SET NAMES '".($db_config->get_db_default_charset() ? $db_config->get_db_default_charset() : 'utf8')."'");
		$this->execute('SET CHARACTER SET '.($db_config->get_db_default_charset() ? $db_config->get_db_default_charset() : 'utf8'));
		$this->execute('SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED');
	}
}


